package com.yanfan.energy.domain;

import com.yanfan.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 物料表(Materials)实体类
 *
 * @author makejava
 * @since 2023-01-09 09:59:16
 */
public class Materials implements Serializable {
    private static final long serialVersionUID = 913523658604265830L;
    /**
     * 主键
     */
    @Excel(name = "物料id")
    private Long id;
    /**
     * 物料编号
     */
    @Excel(name = "物料编号")
    private String number;
    /**
     * 物料名称
     */
    @Excel(name = "物料名称")
    private String name;
    /**
     * 分类编号
     */
    @Excel(name = "分类编号")
    private String classifyNumber;
    /**
     * 分类名称
     */
    @Excel(name = "分类名称")
    private String classifyName;
    /**
     * 品牌型号
     */
    @Excel(name = "品牌型号")
    private String brand;
    /**
     * 品牌规格
     */
    @Excel(name = "品牌规格")
    private String specification;
    /**
     * 工艺编号
     */
    @Excel(name = "工艺编号")
    private String craftNumber;
    /**
     * 工艺名称
     */
    @Excel(name = "工艺名称")
    private String craftName;
    /**
     * 物料数量
     */
    @Excel(name = "物料数量")
    private Long quantity;
    /**
     * 单位
     */
    @Excel(name = "单位")
    private String unit;
    /**
     * 库存下限
     */
    @Excel(name = "库存下限")
    private Long lowerQuantity;
    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remarks;
    /**
     * 负责人
     */
    @Excel(name = "负责人")
    private String principal;
    /**
     * 联系方式
     */
    @Excel(name = "联系方式")
    private String telephone;
    /**
     * 创建人
     */
    @Excel(name = "创建人")
    private String createdBy;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间")
    private Date createdDate;
    /**
     * 修改时间
     */
    @Excel(name = "修改时间")
    private Date lastModifiedDate;
    /**
     * 只用于标识出入还是入库的信息[1、入库，2、出库]
     *
     * @author caijinkang
     * @date 2023/1/10 15:08
     * @param null
     * @return null
     */
    private Long type;
    /**
     * 只用于标识出入库的数量
     *
     * @author caijinkang
     * @date 2023/1/10 15:14
     * @param null
     * @return null
     */
    private Integer afterQuantity;
    /**
     * 只用与标识出库时候的订单信息
     *
     * @author caijinkang
     * @date 2023/1/10 15:32
     * @param null
     * @return null
     */
    private Long orderId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClassifyNumber() {
        return classifyNumber;
    }

    public void setClassifyNumber(String classifyNumber) {
        this.classifyNumber = classifyNumber;
    }

    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public String getCraftNumber() {
        return craftNumber;
    }

    public void setCraftNumber(String craftNumber) {
        this.craftNumber = craftNumber;
    }

    public String getCraftName() {
        return craftName;
    }

    public void setCraftName(String craftName) {
        this.craftName = craftName;
    }

    public Long getQuantity() {
        return quantity;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Long getLowerQuantity() {
        return lowerQuantity;
    }

    public void setLowerQuantity(Long lowerQuantity) {
        this.lowerQuantity = lowerQuantity;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public Date getLastModifiedDate() {
        return lastModifiedDate;
    }

    public void setLastModifiedDate(Date lastModifiedDate) {
        this.lastModifiedDate = lastModifiedDate;
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Integer getAfterQuantity() {
        return afterQuantity;
    }

    public void setAfterQuantity(Integer afterQuantity) {
        this.afterQuantity = afterQuantity;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
}

